{% extends "base.html" %}
{% block title %}登录{% endblock %}

{% block content %}
    <div class="container py-5">
        <h2 class="mb-4">用户登录</h2>
        <form method="post" class="row g-3">
            <!-- 用户名 -->
            <div class="col-md-6">
                <label for="username" class="form-label">用户名</label>
                <input type="text"
                       class="form-control"
                       id="username"
                       name="username"
                       required>
            </div>

            <!-- 密码 -->
            <div class="col-md-6">
                <label for="password" class="form-label">密码</label>
                <input type="password"
                       class="form-control"
                       id="password"
                       name="password"
                       required>
            </div>

            <!-- 提交按钮 -->
            <div class="col-12">
                <button type="submit" class="btn btn-primary">登录</button>
                <a href="{{ url_for('register') }}" class="ms-3">还没账号？去注册</a>
            </div>
        </form>
    </div>
{% endblock %}